package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "`Order`")
public class Order {
    @TableId(value = "orderId", type = IdType.NONE)
    //订单号-
    private String orderId;

    //订单类型-
    @TableField("orderType")
    private String orderType;

    //订单状态
    @TableField("orderStatus")
    private String orderStatus;

    //投递地址
    @TableField("deliverAddress")
    private String deliverAddress;

    //订购人姓名-
    @TableField("customerName")
    private String customerName;

    //订购人电话
    @TableField("customerPhone")
    private String customerPhone;

    //收货人姓名
    @TableField("consigneeName")
    private String consigneeName;

    //收货人电话
    @TableField("consigneePhone")
    private String consigneePhone;

    //收货人地址
    @TableField("consigneeAddress")
    private String consigneeAddress;

    //商品数量-
    @TableField("productNum")
    private Integer productNum;

    //商品ID
    @TableField("productId")
    private String productId;

    //商品名称-
    @TableField("productName")
    private String productName;

    //备注
    @TableField("tip")
    private String tip;

    //商品单价
    @TableField("productPrice")
    private Double productPrice;
}
